﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cool.Application.System.UserService.Dtos;
using Cool.Core.Entities.System;
using Microsoft.AspNetCore.Mvc;

namespace Cool.Application.System.UserService
{
    public interface IUserService
    {
        /// <summary>
        /// 获取所有用户列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedList<UserProfile>> GetListAsync([FromQuery, Required] GetUserListInput input);

        /// <summary>
        /// 新增用户
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<UserProfile> AddAsync([Required] UserProfile input);

        /// <summary>
        /// 获取当前用户信息
        /// </summary>
        /// <returns></returns>
        dynamic Profile();

        /// <summary>
        /// 查询用户详细
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        dynamic GetAsync(int? userId);

        /// <summary>
        /// 修改用户
        /// </summary>
        /// <param name="user"></param>
        Task UpdateAsync(UserProfile user);

        /// <summary>
        /// 删除用户
        /// </summary>
        /// <param name="userId"></param>
        Task DeleteAsync(int userId);

        /// <summary>
        /// 修改用户状态
        /// </summary>
        /// <param name="modifyPwdOrStatus"></param>
        /// <returns></returns>
        Task UpdateChangeUserStatus(ModifyPwdOrStatusInput modifyPwdOrStatus);

        /// <summary>
        /// 更新用户密码
        /// </summary>
        /// <param name="modifyPwdOrStatus"></param>
        /// <returns></returns>
        Task UpdateResetUserPwd(ModifyPwdOrStatusInput modifyPwdOrStatus);
    }
}
